import axios from "@/api";

// 获取报警数据
export const getalarmAPI = (paged:any,data: any) => {
    return axios({
      url: "/service/page/alarm?paged="+paged,
      method: "post",
      data
    });
  };

  export const deletealarmAPI = (data: any) => {
    return axios({
      url: "/service/page/alarm?id="+data,
      method: "delete",
      
    });
  };
//处理报警
  export const updatealarmAPI = (data: any) => {
    return axios({
      url: "/service/alarm",
      method: "put",
      data
    });
  };

  //全部标记为已读
  export const updatAllreadealarmAPI = () => {
    return axios({
      url: "/service/alarm/read",
      method: "get",
      
    });
  }
